﻿Imports Microsoft.VisualBasic

Public Class DBBudgetAccountsSP
    Inherits DBParentStoredProcedureClass

    Public Operation As New TableField("Operation", Data.SqlDbType.NVarChar)
    Public ID As New TableField("ID", Data.SqlDbType.Int)
    Public BudgetID As New TableField("BudgetID", Data.SqlDbType.Int)
    Public AccountNo As New TableField("AccountNo", Data.SqlDbType.NVarChar)
    Public Amount As New TableField("Amount", Data.SqlDbType.Float)

    Sub New()
        MyBase.StoredProcedureName = "BudgetAccountsSP"
    End Sub

    Public Shadows Function QueryDatabase(ByVal QueryType As SqlQueryType, _
                                 Optional ByVal Operation As String = "", _
                                 Optional ByVal ID As String = "", _
                                 Optional ByVal BudgetID As String = "", _
                                 Optional ByVal AccountNo As String = "", _
                                 Optional ByVal Amount As String = "") As Object

        MyBase.FieldsArrayList = New ArrayList
        Me.Operation.SetValue(Operation, MyBase.FieldsArrayList)
        Me.ID.SetValue(ID, MyBase.FieldsArrayList)
        Me.BudgetID.SetValue(BudgetID, MyBase.FieldsArrayList)
        Me.AccountNo.SetValue(AccountNo, MyBase.FieldsArrayList)
        Me.Amount.SetValue(Amount, MyBase.FieldsArrayList)
        Return MyBase.QueryDatabase(QueryType)
    End Function

End Class
